package com.cnap.multiclouldmgmt.model.microSvc.alg;

import com.cnap.multiclouldmgmt.model.BasicValueModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 {
 "past_data": [ //过去7天数据
 {"index":1686886277000, "value":30}, //时间戳为ms，value为百分比数
 {"index":1686886278000, "value":30},
 {"index":1686886279000, "value":30},
 {"index":1686886287000, "value":40},
 {"index":1686886277000, "value":40},
 {"index":1686886277000, "value":40},
 {"index":1686886277000, "value":50}
 ],
 "predict_data":[//预测7天数据
 {"index":1686886277000, "value":30},
 {"index":1686886278000, "value":30},
 {"index":1686886279000, "value":30},
 {"index":1686886287000, "value":40},
 {"index":1686886277000, "value":40},
 {"index":1686886277000, "value":40},
 {"index":1686886277000, "value":50}
 ],
 "alarm_thresh":{
 "low_upper_limit": 50, //低风险阈值上限，表示低风险为0-50%
 "middle_upper_limit":70   //中风险阈值上限，表示中风险为50%-70%
 //高风险自行补充，为70-100%
 },
 "is_present":true //True表示需要展示预警线，False表示无需展示
 }
 **/
@ApiModel(value = "com.cnap.multiclouldmgmt.model.microSvc.alg.CpuRiskTrendModel",description = "风险预测值")
public class CpuRiskTrendModel {

    //lowUpperLimit
    @ApiModelProperty(value = "是否展示预警线，false不用展示")
    private boolean showThresh;

    //lowUpperLimit
    @ApiModelProperty(value = "低风险阈值上限")
    private int lowUpperLimit;

    //middleUpperLimit
    @ApiModelProperty(value = "中风险阈值上限")
    private int middleUpperLimit;

    //update_value
    @ApiModelProperty(value = "records")
    private List<BasicValueModel> records;

    /**
     * get
     *
     * @return LowUpperLimit
     */
    public int getLowUpperLimit() {
        return lowUpperLimit;
    }

    /**
     * set
     *
     * @param lowUpperLimit lowUpperLimit
     */
    public void setLowUpperLimit(int lowUpperLimit) {
        this.lowUpperLimit = lowUpperLimit;
    }

    /**
     * get
     *
     * @return MiddleUpperLimit
     */
    public int getMiddleUpperLimit() {
        return middleUpperLimit;
    }

    /**
     * set
     *
     * @param middleUpperLimit middleUpperLimit
     */
    public void setMiddleUpperLimit(int middleUpperLimit) {
        this.middleUpperLimit = middleUpperLimit;
    }

    /**
     * get
     *
     * @return Records
     */
    public List<BasicValueModel> getRecords() {
        return records;
    }

    /**
     * set
     *
     * @param records records
     */
    public void setRecords(List<BasicValueModel> records) {
        this.records = records;
    }
}
